# FROM php:8.4-fpm
FROM php:7.4-fpm


ENV http_proxy=http://192.168.3.63:7890
ARG WITH_XDEBUG=false

RUN apt-get update && apt-get install -y \
    libfreetype6-dev \
    libjpeg62-turbo-dev \
    libpng-dev \
    && docker-php-ext-configure gd --with-freetype --with-jpeg \
    && docker-php-ext-install -j$(nproc) gd \
    && docker-php-ext-install mysqli \
    && docker-php-ext-install pdo pdo_mysql; \
    if [ $WITH_XDEBUG = "true" ] ; then \
    pecl install xdebug; \
    fi ;
